package com.atguigu.springcloud;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author : zhenyu
 * @Date : 2022/8/31 09:20
 **/

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableHystrix //开启hystrix
@MapperScan({"com.atguigu.springcloud.*"})
public class BuyTicketMainApplication {
    public static void main(String[] args) {
        SpringApplication.run(BuyTicketMainApplication.class,args);
    }
}
